package com.woniu.apartment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 公寓规则对照对象 tb_apart_rules_ref
 *
 * @author yy
 * @date 2023-04-03
 */
@ApiModel(value = "ApartRulesRef", description = "公寓规则对照")
public class ApartRulesRef implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    /** 公寓id */
    @Excel(name = "公寓id")
    @ApiModelProperty("公寓id")
    private Long apartmentId;

    /** 规则id */
    @Excel(name = "规则id")
    @ApiModelProperty("规则id")
    private Long ruleId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setApartmentId(Long apartmentId)
    {
        this.apartmentId = apartmentId;
    }

    public Long getApartmentId()
    {
        return apartmentId;
    }
    public void setRuleId(Long ruleId)
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId()
    {
        return ruleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("apartmentId", getApartmentId())
            .append("ruleId", getRuleId())
            .toString();
    }
}
